Skip to content

Allow optional 'rules' parameter for ruleset creation - #53

Merged
SergkeiM merged 1 commit into
masterfrom
bug/cant-create-new-ruleset
Jul 28, 2026
Merged

Allow optional 'rules' parameter for ruleset creation#53
SergkeiM merged 1 commit into
masterfrom
bug/cant-create-new-ruleset

Conversation

@SergkeiM

Copy link
Copy Markdown
Owner

The Cloudflare API permits creating rulesets without providing the 'rules' array, or with an empty one. Previously, the client library incorrectly marked 'rules' as a required field, preventing successful creation in these valid scenarios. This change corrects the client's validation and adds tests to confirm the new behavior.

The Cloudflare API permits creating rulesets without providing the 'rules' array, or with an empty one. Previously, the client library incorrectly marked 'rules' as a required field, preventing successful creation in these valid scenarios. This change corrects the client's validation and adds tests to confirm the new behavior.
@SergkeiM SergkeiM linked an issue Jul 28, 2026 that may be closed by this pull request
@SergkeiM
SergkeiM merged commit dc89514 into master Jul 28, 2026
8 checks passed
@SergkeiM
SergkeiM deleted the bug/cant-create-new-ruleset branch July 28, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't create new ruleset

1 participant